package com.lsu.app.service;

import com.lsu.app.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @description 针对表【user】的数据库操作Service
 * @Date 2023-10-16 19:31:42
 * @author hjj
 */

public interface UserService extends IService<User> {
    Boolean isTeacher(Integer userId);
    User getUserByUsername(String username);
    String getRoleByUsername(String username);//获取用户角色集
    void setRoleByUser(Integer userId, Integer type);//建立角色关系
    User getUserByUsernameType(String username,Integer type);//多端口登录
    Integer getIdByUsername(String username);//通过账号获取id
    String getNameById(Integer id);//获取昵称
    String[] getTasteById(Integer id);//获取兴趣
    List<String> getTastes();
    Integer getTasteNameValueByTasteName(String tasteName);
    List<Integer> getIdsByName(String name);

}
